<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * S7Ncms - www.s7n.de
 *
 * Copyright (c) 2007-2009, Eduard Baun <eduard at baun.de>
 * All rights reserved.
 *
 * See license.txt for full text and disclaimer
 *
 * @author Eduard Baun <eduard at baun.de>
 * @copyright Eduard Baun, 2007-2009
 * @version $Id$
 */

class Page_Controller extends Frontend_Controller {

	public function index($id)
	{
		$page = ORM::factory('page', (int) $id);

    	$this->title = $page->content()->title;
    	$this->content = $page->content()->data;
	}

}